
Markup Languages and Reproducible Programming in Statistics

if(!require(knitr)) install.packages("knitr")
library(knitr)
fig1 <- "http://tolkiengateway.net/w/images/b/b9/John_Howe_-_
Shelob_About_to_Leap_on_Frodo.jpg"
include_graphics(fig1)
\[ \begin{aligned} P &= e \sigma k (2 L \pi r + 2 \pi r^2)(T_g^4 - T_c^4) \\ \\ P &= (\frac{117 \ \text{J}}{1 \ \text{s}})(\frac{1 \ \text{fish}}{2.13 \cdot 10^6 \ \text{J}}) = 5.49 \cdot 10^{-5} \ \text{fish/s} \\ \\ P &= (\frac{5.49 \cdot 10^{-5} \ \text{fish}}{1 \ \text{s}})(\frac{3600 \ \text{s}}{1 \ \text{hr}})(\frac{24 \ \text{hr}}{1 \ \text{day}}) = 4.7 \ \text{fish/day} \end{aligned} \]
When winter passed, she came again,
And her song released the sudden spring,
Like rising lark, and falling rain,
And melting water bubbling.
He saw the elven-flowers spring
About her feet, and healed again
He longed by her to dance and sing
Upon the grass untroubling.
Again she fled, but swift he came.
Tinúviel! Tinúviel!
He called her by her elvish name;
And there she halted listening.
One moment stood she, and a spell
His voice laid on her: Beren came,
And doom fell on Tinúviel
That in his arms lay glistening.
As Beren looked into her eyes
Within the shadows of her hair,
The trembling starlight of the skies
He saw there mirrored shimmering.
Tinúviel the elven-fair,
Immortal maiden elven-wise,
About him cast her shadowy hair
And arms like silver glimmering.
Long was the way that fate them bore,
O’er stony mountains cold and grey,
Through halls of ireon and darkling door,
And woods of nightshade morrowless.
The Sundering Seas between them lay,
And yet at last they met once more,
And long ago they passed away
In the forest singing sorrowless.
Allain, Rhett. 2012. “How Many Fish Does Gollum Need?” November 12, 2012. https://www.wired.com/2012/12/how-many-fish-does-gollum-need/?utm_campaign=Feed%3A+wired%2Findex+%28Wired%3A+Top+Stories%29&utm_medium=feed&utm_source=feedburner.
Howe, John. n.d. Shelob About to Leap on Frodo. https://www.john-howe.com/portfolio/gallery/details.php?image_id=1474&mode=search.
Mooney, Paul. 2018. “Lord of the Rings Data.” November 4, 2018. https://www.kaggle.com/paultimothymooney/lord-of-the-rings-data?select=lotr_characters.csv.
Tolkien, J. R.R. 1977. The Silmarillion. Boston: Houghton Mifflin.